package com.bop.dehong.http.model;

import java.lang.reflect.Type;

import android.app.Activity;

import com.base.dehong.http.HttpRequest;
import com.base.dehong.http.RequestCallBack;
import com.bop.dehong.config.Config;
import com.bop.dehong.info.EmptyInfo;
import com.google.gson.reflect.TypeToken;
/**
 * 投标
 * 
 */
public class BidModel extends HttpRequest<EmptyInfo>{

	public BidModel(Activity activity, RequestCallBack<EmptyInfo> callback) {
		super(activity, callback);
		// TODO Auto-generated constructor stub
	}

	@Override
	public String getURL() {
		// TODO Auto-generated method stub
		return Config.getIP() + Config.getBid();
	}
	public void doNet(String id, String uid, String price, String voucher) {
		mPostValues.put("a", "investupdate");
		mPostValues.put("id", id);
		mPostValues.put("m", "Invest");		
		mPostValues.put("price", price);
		mPostValues.put("uid", uid);
		mPostValues.put("voucher", voucher);
		requestByPost();
	}
	
	public Type getType(){
		return new TypeToken<EmptyInfo>() {}.getType();
	}

	@Override
	public Class<EmptyInfo> getClazz()
	{
		return EmptyInfo.class;
	}

}
